package org.example.factory;

import org.example.dao.impl.UserDaoImpl;
import org.springframework.beans.factory.FactoryBean;

public class UserDaoFactory02 implements FactoryBean<UserDaoImpl> {
    @Override
    public UserDaoImpl getObject() throws Exception {
        UserDaoImpl userDao = new UserDaoImpl();
        userDao.setTag("facotyBean 方式创建 bean");
        return userDao;
    }

    @Override
    public Class<?> getObjectType() {
        return UserDaoImpl.class;
    }
}
